Property editor/cs

Přehled

Editor vlastností je jeden z nejdůležitějších nástrojů FreeCADu a hlavní prvek při práci s FreeCADem. Editor vlastností umožňuje správu vlastností objektů v dokumentu.

The Property editor appears in the lower section of the Model panel (if the Combo view is active) or as a stand-alone panel called Property view.

Obecně je editor vlastností určen k práci s jedním objektem v jednom čase. Hodnoty zobrazované v editoru vlastností patří vždy k aktuálnímu aktivnímu dokumentu (dávejte pozor, který dokument je právě aktivní, když pracujete na vícenásobném dokumentu). Pokud není vybrán žádný prvek (nebo v dokumentu nejsou žádné prvky) bude editor vlastností prázdný.

Ne všechny vlastnosti mohou být upravovány v daném čase. V závislosti na specifickém stavu budou některé vlastnosti zobrazovány pouze pro čtení.

The Data properties of a Part Box

Definování vlastností

A property is a piece of information like a number or a text string that is attached to a FreeCAD document or an object in the document. Many property types are available. Some of the most common types are:

App::PropertyAngle
App::PropertyBool
App::PropertyDistance
App::PropertyFloat
App::PropertyInteger
App::PropertyLength
App::PropertyPlacement
App::PropertyString
App::PropertyVector

View and Data properties

The Property editor has two tabs giving access to two classes of properties:

Basic properties

Different objects may have different properties. However, many objects have the same properties because they are derived from the same internal class.

Most geometrical objects that can be created and displayed in the 3D view are derived from a Part::Feature. See Part Feature for the basic properties these objects have.

For 2D geometry, most objects are derived from a Part::Part2DObject (itself derived from a Part::Feature) which is the base of Sketches, and most Draft objects. See Part Part2DObject for the basic properties these objects have.

Context menu

To display the context menu of the Property editor right-click the background of the editor, or right-click a property.

Right-clicking the background shows three options:

When right-clicking a property the following additional options are available:

If a status value is followed by an asterisk (*) it is static and cannot be changed.
  • Hidden: if active, sets the property as hidden, meaning that it will only be displayed in the Property editor if Show hidden is active.
  • Output: if active, sets the property as output.
  • NoRecompute: if active, modifying the property doesn't touch its container for recompute.
  • ReadOnly: if active, sets the property as read-only. The property won't be editable in the Property editor and the Expression... option no longer available. It may however still be possible to change the property via a dialog.
  • Transient: if active, sets the property as transient. The value of a transient property is not saved to file. When opening a file, it is instantiated with its default value.
  • Touched: if active, the object becomes touched, and ready for recompute.
  • EvalOnRestore: if active, the property is evaluated when the document is restored.
  • CopyOnChange: if active, the property is copied when changed in a Link. The Link's ÚdajeLink Copy on Change property must be set to Tracking or Enabled for this to work. This is related to Variant Links.

Scripting

See FeaturePython Custom Properties.

Preferences

See Combo view.